package com.smallcc.repository;

import com.smallcc.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 晓风过境
 * @TODO  订单主表查询Dao层
 * @date 2018/3/29 13:04
 * @day 29
 * @return $text$
 * @title ${CLASS_NAME}
 * @project_name sell
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {
    //按照买家的Id来查询
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
